package com.zhou.util;

import java.io.File;

/**
 * @author lang.zhou
 * @date 2019/11/25
 */
public class OsUtil {
    public static final String LINUX="/";
    public static final String WINDOWS="\\";
    public static final String LINUX_SEC="/";
    public static final String WINDOWS_SEC="\\\\";
    public static String getNewLine(){
        if("/".equals(File.separator)){
            return "\n";
        }
        return "\r\n";
    }
    public static boolean isLinux(){
        return "/".equals(File.separator);
    }
}
